﻿using INTEX.DataBase.Tools;
using System.Web.Mvc;
using WPFExcelReport;
using System.Collections;
using System.Collections.Generic;
using ReflectionStudio.Core.Events;
namespace ITXHWEB.Controllers
{
    public class HomeController : ITXController
    {

        public HomeController()
        {
            if (!IsLogOn)
            {
                return;
            }
            MAPP = "Home";
            IsVVTReady = false;
            IsVKPReady = false;
            MABF.IsPDCReady = false;
            MABF.IsStaffReady = false;
            MWB.ART = "";
            MWB.FARBE = "";
            MWB.WHPCS.Clear();
            MABF.STAFF = "";
            VKPAUF = "";
            LIEFSCH = "";
            WBLIST = null;
            CPWBS = "";
            TWBS = 0;
            HWBS = 0; 
            foreach (KeyValuePair<string, object> kp in ENVMAIN)
            {
                TempData[kp.Key] = kp.Value;
            }
            //Tracer.Info("Home","回到主页");
            //app.m_log_out.Info("回到主页");
        }
        public ActionResult Index()
        {
            ViewBag.Message = "主页";
            ViewBag.IsLogOn = IsLogOn;
            return View();
        }

        public ActionResult About()
        {
            ViewBag.Message = "关于Intex";

            return View();
        }

        public ActionResult Contact()
        {
            ViewBag.Message = "建议";
            return View();
        }



    }
}
